x=0
for i in range (1,967):
    if i %2==1:
        x=x+i
    else:
        x=x-i
print("数列1-2+3-4+..._996的和为：",x)